package com.example.travel.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.travel.domain.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * @Author : LinQingLiang
 * @file : RolesMapper.java
 * @Since : 2023/1/30 21:24
 */

@Mapper
public interface RolesMapper extends BaseMapper<Role> {

    Page page(@Param("page") Page<Role> page, @Param(Constants.WRAPPER) Wrapper<Role> qw);

    int selectByFlag(@Param("flag") String flag);

}
